<div class="hi-message">
  <hi-message *ngFor="let message of messages; let i = index" [hiMessage]="message" [hiIndex]="i"></hi-message>
</div>